<?php
//error_reporting(E_ERROR);
error_reporting(E_ALL|E_NOTICE);
ini_set('display_errors', 'on');

define('FROM_INDEX', true);
define('VERSION', 1);
define('ROOT_PATH', dirname(__FILE__).'/');

require ROOT_PATH.'include/lib/load_setting.php';
require ROOT_PATH.'mobiapi/conf/config_servlet.php';
require ROOT_PATH.'include/function/global.func.php';
require_once ROOT_PATH.'include/cache/class_cache_factory.php';
require ROOT_PATH.'mobiapi/include/function/servlet.func.php';

require ROOT_PATH.'include/lib/template.func.php';
require ROOT_PATH."service/story.service.php";

load_setting('config_global');

$id = isset($_REQUEST['sid']) ? $_REQUEST['sid'] : '';
if (!$id) die("Not exists.");

$service = new StoryService();
$info = $service->get('', $id);

//var_dump($info);

//var_dump(ROOT_PATH);

include template('info/index');